package com.zqc.user.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "zqc-service-code")
@RequestMapping("/api/code")
public interface CodeService {
    @RequestMapping("/validate/{email}/{code}")
    Integer validate(@PathVariable(value = "email") String email,
                     @PathVariable(value = "code") String code);
}
